<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML >

<html lang="en-US">
<head>
	<meta charset="UTF-8">
    <title>项目管理系统-成员</title>
  
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jQuery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		body{
			padding-top:40px;
			background-color: #C0DEED;
			background-image: url("img/pro-bg.png");
			background-repeat:no-repeat;
		}
		.body-bgc{
			padding-top:20px;
			background-color:#bod4e5;
			background: url("img/wash-white-30.png") repeat scroll 0 0 transparent;
		}
		.con{
			margin-left:100px;
		}
		.con-foot{
			margin:25px 100px;;
		}
	</style>

  </head>
  <body>
    <%@ include file="include/topbar.jsp" %>
    
    <!--网页正文-->

		
		<div class="container well body-bgc">
			
			<div>
				<h3>发布一个新的项目</h3>
			</div>
			<hr/>
			<!-- 下半部分 -->
			
			<div class="span6 con">
				
				<form action="project.jspx?m=createProdject" method ="post">
					<label>项目名称</label>
					<input type = "text"  class="input-xlarge span5" name ="proname"/>
					<label>项目描述</label>
					<textarea rows="3" class="input-xlarge span5" cols="" name = "desc"></textarea>
					<label>负责人</label>
					<select class="span3">
						 <option>请选择负责人</option>
						<c:forEach items="${requestScope.emps }" var="emp"  >
		                <option>${emp.username} </option>
		                </c:forEach>
		             </select>
		             <label>项目成员</label>
		             	<select class="span2 addem" name ="em" >
						 <option>请选择雇员</option>
						<c:forEach items="${requestScope.emps }" var="emp"  >
		                <option >${emp.username}, </option>
		                </c:forEach>
		             </select>
		             <br/>
		            	<textarea rows="3" class="input-xlarge span5 emlist" cols="" name ="empro"></textarea>
		            	<div class="con-foot ">
			            	<input type="reset" class = "btn btn-danger" value="重置"/>
			            	<button type ="submit" class = "btn btn-success" style="margin-left:50px;"><i class="icon-th-large icon-white"></i>建立项目工程</button>
		            	</div>
				</form>
				
			</div>
		</div>
	<script type="text/javascript" >
		$("document").ready(function(){
			var em;
			$(".addem").click(function(){
				em = $(".addem").val();
				alert(em);
				$(".emlist").text();
			});
		});
	</script>

  </body>
</html>
